package main;

import javax.swing.JFrame;

/**
 *
 * @author 樂淵
 */
public class Tips extends javax.swing.JFrame {
	private static final long serialVersionUID = 1L;
	
	
    public Tips() {
        initComponents();
        setBounds(500, 100, 500, 500);
    }
    public void showTips(){
         try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Tips.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Tips.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Tips.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Tips.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
         final Tips t =  new Tips();
         t.setTitle("提示");
         
         
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                t.setVisible(true);
            }
        });
        t.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    }
    /**
     */
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        tipsStr = new javax.swing.JTextArea();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        tipsStr.setEditable(false);
        tipsStr.setColumns(20);
        tipsStr.setRows(5);
        tipsStr.setText("该程序用于对比两个数据库相同结构的表的数据差异。。。驱动问题。。。\n");
        jScrollPane1.setViewportView(tipsStr);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }
    
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea tipsStr;
}
